// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   SourceFile

package com.sgame.android.network;


public final class PairValue
{

    public PairValue(Object obj, Object obj1)
    {
        name = obj;
        value = obj1;
    }

    public final String toString()
    {
        return (new StringBuilder("Pair[")).append(name).append(",").append(value).append("]").toString();
    }

    private static boolean equals(Object obj, Object obj1)
    {
        return obj == null && obj1 == null || obj != null && obj.equals(obj1);
    }

    public final boolean equals(Object other)
    {
        return (other instanceof PairValue) && equals(name, ((PairValue)other).name) && equals(value, ((PairValue)other).value);
    }

    public final int hashCode()
    {
        if(name == null)
            if(value == null)
                return 0;
            else
                return value.hashCode() + 1;
        if(value == null)
            return name.hashCode() + 2;
        else
            return name.hashCode() * 17 + value.hashCode();
    }

    public static PairValue a(Object obj)
    {
        return new PairValue(obj, null);
    }

    public Object name;
    public Object value;
}
